using System.Collections.Generic;

namespace GameLogic
{
    public class UserStorage : IUserStorage
    {
        private User user;

        #region Implementation of IUserStorage

        public void SaveUser(User user)
        {
            this.user = user;
        }

        public User LoadUser()
        {
            return user;
        }

        public IEnumerable<User> GetAllUsers()
        {
            yield return user;
        }

        #endregion
    }
}